﻿# -*-coding:  UTF-8
# @Time    :  2021/9/13 19:38
# @Author  :  Cooper
# @FileName:  test3.py
# @Software:  PyCharm
class Person(object):
    def __init__(self, name, gender, age):
        self.name = name
        self.gender = gender
        self.age = age


class Student(Person):
    def __init__(self, name, gender, age, school, score):
        # super(Student,self).__init__(name,gender,age)
        self.name = name.upper()  # upper() 方法将字符串中的小写字母转为大写字母
        self.gender = gender.upper()
        self.school = school
        self.score = score


s = Student('Alice', 'female', 18, 'Middle school', 87)
print(s.school)
print(s.gender)
